package com.ruoyi.common.core.domain.business.waterDistribution;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 年度种植作物对象 wi_crop_y
 * 
 * @author ps
 * @date 2023-02-16
 */
@Data
public class WiCropY extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 种植年度 */
    @Excel(name = "种植年度",sort = 1)
    private String cropYr;

    /** 种植代码 */
    @Excel(name = "种植代码")
    private String plantCd;

    /** 作物代码 */
    @Excel(name = "作物代码")
    private String cropCd;

    /** 灌溉方式 */
    @Excel(name = "灌溉方式", readConverterExp = "0=常规灌溉,1=膜上灌溉,2=喷灌,3=滴灌,4=其他")
    private String wiKind;

    /** 备注 */
    @Excel(name = "备注")
    private String cropMark;

    /** 是否删除标记 */
    @Excel(name = "是否删除")
    private String delFlag;

    private long id;

    public void setCropYr(String cropYr) 
    {
        this.cropYr = cropYr;
    }

    public String getCropYr() 
    {
        return cropYr;
    }
    public void setPlantCd(String plantCd) 
    {
        this.plantCd = plantCd;
    }

    public String getPlantCd() 
    {
        return plantCd;
    }
    public void setCropCd(String cropCd) 
    {
        this.cropCd = cropCd;
    }

    public String getCropCd() 
    {
        return cropCd;
    }
    public void setWiKind(String wiKind) 
    {
        this.wiKind = wiKind;
    }

    public String getWiKind() 
    {
        return wiKind;
    }
    public void setCropMark(String cropMark) 
    {
        this.cropMark = cropMark;
    }

    public String getCropMark() 
    {
        return cropMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cropYr", getCropYr())
            .append("plantCd", getPlantCd())
            .append("cropCd", getCropCd())
            .append("wiKind", getWiKind())
            .append("cropMark", getCropMark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
